Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / feature / car / src / main / kotlin / org / meshtastic / feature / car / service / MeshtasticCarAppService.kt

Displaying Raw • Download

feature/car/src/main/kotlin/org/meshtastic/feature/car/service/MeshtasticCarAppService.kt 2d20cd8a4708e2ef66e98d5259f3a97ec93f240a (2d20cd8a) Text, 1.51 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.car.service

Tff7b72import T7ee787androidx.car.app.CarAppService
Tff7b72import T7ee787androidx.car.app.Session
Tff7b72import T7ee787androidx.car.app.SessionInfo
Tff7b72import T7ee787androidx.car.app.validation.HostValidator
Tff7b72import T7ee787co.touchlab.kermit.Logger
Tff7b72import T7ee787org.meshtastic.feature.car.BuildConfig
Tff7b72import T7ee787org.meshtastic.feature.car.R

Tff7b72class T56d364MeshtasticCarAppService Tb4b4b4: Te6edf3CarAppServiceTb4b4b4(Tb4b4b4) Tb4b4b4{

Tff7b72override Tff7b72fun Td2a8ffcreateHostValidatorTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3HostValidator Tff7b72= Tff7b72if Tb4b4b4(Te6edf3BuildConfigTb4b4b4.Te6edf3DEBUGTb4b4b4) Tb4b4b4{
Te6edf3LoggerTb4b4b4.Te6edf3wTb4b4b4(Te6edf3tag Tff7b72= Ta5d6ff"Ta5d6ffCarAppServiceTa5d6ff"Tb4b4b4) Tb4b4b4{ Ta5d6ff"Ta5d6ffUsing ALLOW_ALL_HOSTS_VALIDATOR — debug build onlyTa5d6ff" Tb4b4b4}
Te6edf3HostValidatorTb4b4b4.Te6edf3ALLOW_ALL_HOSTS_VALIDATOR
Tb4b4b4} Tff7b72else Tb4b4b4{
Te6edf3HostValidatorTb4b4b4.Te6edf3BuilderTb4b4b4(Te6edf3applicationContextTb4b4b4)Tb4b4b4.Te6edf3addAllowedHostsTb4b4b4(Te6edf3RTb4b4b4.Te6edf3arrayTb4b4b4.Te6edf3car_hosts_allowlistTb4b4b4)Tb4b4b4.Te6edf3buildTb4b4b4(Tb4b4b4)
Tb4b4b4}

Tff7b72override Tff7b72fun Td2a8ffonCreateSessionTb4b4b4(Te6edf3sessionInfoTb4b4b4: Te6edf3SessionInfoTb4b4b4)Tb4b4b4: Te6edf3Session Tff7b72= Te6edf3MeshtasticCarSessionTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s